<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet"href="/pages/css/integrated-layout.css" >
    <style>
        .generate-box form ,
        .generate-box table{
           background-color: #fff;
        }
    </style>
</head>

<script type="text/javascript" src="/pages/generate/generate.js"></script>

<body>
    <div class="generate-box integrated-box">
        <div class="generate-content integrated-content">
          <div class="generate-form">
                <form  class="form-inline generate-form">
                    <div class="form-group col-sm-6 mb-3">
                        <label  class="col-sm-2 col-form-label">数据库</label>
                        <select id="dataSourceCode"  name="dataSourceCode"></select>
                        <!--<input type="text"  class="form-control col-sm-10"  name="dataSourceCode">-->
                    </div>

                    <div class="form-group col-sm-6 mb-3">
                        <label  class="col-sm-2 col-form-label">表</label>
                        <select class="col-sm-10" id="tables" name="tables" multiple><option value=''>请选择</option></select>
                <!--        <input type="text"  class="form-control col-sm-10"  name="tables"  >-->
                    </div>

                    <div class="form-group col-sm-6 mb-3">
                        <label  class="col-sm-2 col-form-label">作者</label>
                        <input type="text"  class="form-control col-sm-10" id="author"  name="author" value="">
                    </div>
                    <div class="form-group col-sm-6 mb-3">
                        <label  class="col-sm-2 col-form-label">JAVA HOME</label>
                        <input type="text"  class="form-control col-sm-10" id="javaParent" name="javaParent"  value="">
                    </div>

                    <div class="form-group col-sm-6 mb-3">
                        <label  class="col-sm-2 col-form-label">Java根目录</label>
                        <input type="text"  class="form-control col-sm-10" id="javaRootPath" name="javaRootPath"  value="src.main.java">
                    </div>

                    <div class="form-group col-sm-6 mb-3">
                        <label  class="col-sm-2 col-form-label">XML根目录</label>
                        <input type="text"  class="form-control col-sm-10" id="xmlRootPath" name="xmlRootPath" value="src.main.resources">
                    </div>
                </form>
          </div>
          <div class="generate-table">
                <table id="strategy" class="table table-bordered">
                    <thead>
                    <tr>
                        <th scope="col">类型</th>
                        <th scope="col">名称</th>
                        <th scope="col">包名</th>
                        <th scope="col">生成</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <th scope="row"><input type="text" readonly name="type" class="form-control"  value="xml"></th>
                        <td><input type="text"  class="form-control" name="name" value="%sMapper"></td>
                        <td><input type="text"  class="form-control"  name="package" value="mapper"></td>
                        <td>
                            <div class="form-check">
                                <input class="form-check-input" type="checkbox"  name="disable" checked >
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row"><input type="text" readonly name="type" class="form-control"  value="entity"></th>
                        <td><input type="text"  class="form-control" name="name" value="%sEntity"></td>
                        <td><input type="text"  class="form-control"  name="package" value="entity"></td>
                        <td>
                            <div class="form-check">
                                <input class="form-check-input" type="checkbox"  name="disable" checked >
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row"><input type="text" readonly name="type" class="form-control"  value="mapper"></th>
                        <td><input type="text"  class="form-control" name="name"  value="%sMapper"></td>
                        <td><input type="text"  class="form-control" name="package" value="mapper"></td>
                        <td>
                            <div class="form-check">
                                <input class="form-check-input" type="checkbox"  name="disable" checked>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row"><input type="text" readonly name="type" class="form-control"  value="service"></th>
                        <td><input type="text"  class="form-control" name="name"  value="%sService"></td>
                        <td><input type="text"  class="form-control"  name="package" value="service"></td>
                        <td>
                            <div class="form-check">
                                <input class="form-check-input" type="checkbox"  name="disable" checked>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row"><input type="text" readonly name = "type" class="form-control"  value="serviceImpl"></th>
                        <td><input type="text"  class="form-control" name = "name" value="%sServiceImpl"></td>
                        <td><input type="text"  class="form-control" name = "package" value="service.impl"></td>
                        <td>
                            <div class="form-check">
                                <input class="form-check-input" type="checkbox"  name="disable" checked>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row"><input type="text" readonly name ="type" class="form-control"  value="controller"></th>
                        <td><input type="text"  class="form-control" name= "name" value="%sController"></td>
                        <td><input type="text"  class="form-control" name="package" value="controller"></td>
                        <td>
                            <div class="form-check">
                                <input class="form-check-input" type="checkbox"  name="disable">
                            </div>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
          <div class="col-sm-12 text-center">
                <button type="button" class="btn btn-primary col-sm-1 mb-2 generate" style="background-color: #409eff">生成</button>
          </div>
        </div>
    </div>
</body>
</html>